import tensorflow as tf
ts_c=tf.constant(2,name='ts_c')
ts_x=tf.Variable(ts_c+5,name='ts_x')
sess=tf.Session()
init=tf.global_variables_initializer()
sess.run(init)
print('ts_c=',sess.run(ts_c))
print('ts_x=',sess.run(ts_x))
print('ts_c=',ts_c.eval(session=sess))
print('ts_x=',ts_x.eval(session=sess))
sess.close()
